/**
 * 系统日志相关接口
 */
import request from '@/utils/request'

// 获取日志列表
export function getLogList(params) {
  return request({
    url: '/log/list',
    method: 'get',
    params
  })
}

// 获取日志详情
export function getLogDetail(id) {
  return request({
    url: `/log/${id}`,
    method: 'get'
  })
}

// 导出日志
export function exportLogs(params) {
  return request({
    url: '/log/export',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

// 清空日志
export function clearLogs() {
  return request({
    url: '/log/clear',
    method: 'delete'
  })
} 